package field_method07;

import java.util.Scanner;

public class HeYCha {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入第一个整数：");

        int i = scanner.nextInt();

        System.out.println("请输入第二个整数：");

        int n = scanner.nextInt();

        int sum = i + n;
        int diff = i-n ;

        System.out.println("两个数的和为：" +sum);
        System.out.println("两个数的差为：" +diff);
    }
}
